package starcoast.bocai.com.starcoast.activitys.work;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.widget.ListView;

import butterknife.Bind;
import butterknife.ButterKnife;
import starcoast.bocai.com.starcoast.R;
import starcoast.bocai.com.starcoast.activitys.SearchActivity;
import starcoast.bocai.com.starcoast.adapter.PhoneOpenAdapter;
import starcoast.bocai.com.starcoast.common.BaseActivity;

/**
 * Created by admin on 2016/6/13.
 */
public class PhoneOpenActivity extends BaseActivity {
    @Bind(R.id.toolbar)
    Toolbar toolbar;
    @Bind(R.id.phone_open_lv)
    ListView phone_open_lv;
    PhoneOpenAdapter adapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_phone_open);
        ButterKnife.bind(this);
        adapter = new PhoneOpenAdapter(this);
        phone_open_lv.setAdapter(adapter);
        initToolbar("手机开门");
        initToolBack();
        toolbar.inflateMenu(R.menu.menu_add);
        toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
            @Override
            public boolean onMenuItemClick(MenuItem item) {
                startActivity(new Intent(PhoneOpenActivity.this, ApplicationActivity.class));
                return false;
            }
        });
    }
}
